<?php

class Mac_Db_Clause_From
{
    private $clauses = array();
    
    private function __construct($clauses)
    {
        $this->clauses = $clauses;
    }
    
    public static function tables ($clauses)
    {
        if (!is_array($clauses)) {
            $clauses = array($clauses);
        }
        return new self($clauses);
    }
    
    public function __toString()
    {
        return implode(', ', $this->clauses);
    }
}